package org.cbg.panel;

import java.awt.CardLayout;

import javax.swing.JPanel;

/**
 * 交易面板进行卡片布局
 * 
 * @author Administrator
 * 
 */
public class TranslationMainCardJpanel extends JPanel {
    private CardLayout cardLayout;
    // 我要买
    private TraslationWantBuyJpanel traslationWantBuyJpanel;

    // 我要卖
    private TraslationWantSentJpanel traslationWantSentJpanel;

    // 我的藏宝阁
    private TraslationMyMainJpanel traslationMyMainJpanel;
    // 消息
    private TraslationMyMessageJpanel traslationMyMessageJpanel;

    public TranslationMainCardJpanel() {
        cardLayout = new CardLayout();
        this.setLayout(cardLayout);
        traslationWantBuyJpanel = new TraslationWantBuyJpanel();
        traslationWantSentJpanel = new TraslationWantSentJpanel();
        traslationMyMainJpanel = new TraslationMyMainJpanel();
        traslationMyMessageJpanel = new TraslationMyMessageJpanel();
        this.add(traslationWantBuyJpanel, "iwantbuy");
        this.add(traslationWantSentJpanel, "iwantsent");
        this.add(traslationMyMainJpanel, "icangbaoge");
        this.add(traslationMyMessageJpanel, "imes");
//        藏宝阁分类分辨率
        this.setBounds(22 + 18, 58, 760, 495);
        this.setOpaque(false);
    }

    public CardLayout getCardLayout() {
        return cardLayout;
    }

    public void setCardLayout(CardLayout cardLayout) {
        this.cardLayout = cardLayout;
    }

    public TraslationWantBuyJpanel getTraslationWantBuyJpanel() {
        return traslationWantBuyJpanel;
    }

    public void setTraslationWantBuyJpanel(TraslationWantBuyJpanel traslationWantBuyJpanel) {
        this.traslationWantBuyJpanel = traslationWantBuyJpanel;
    }

    public TraslationWantSentJpanel getTraslationWantSentJpanel() {
        return traslationWantSentJpanel;
    }

    public void setTraslationWantSentJpanel(TraslationWantSentJpanel traslationWantSentJpanel) {
        this.traslationWantSentJpanel = traslationWantSentJpanel;
    }

    public TraslationMyMainJpanel getTraslationMyMainJpanel() {
        return traslationMyMainJpanel;
    }

    public void setTraslationMyMainJpanel(TraslationMyMainJpanel traslationMyMainJpanel) {
        this.traslationMyMainJpanel = traslationMyMainJpanel;
    }

    public TraslationMyMessageJpanel getTraslationMyMessageJpanel() {
        return traslationMyMessageJpanel;
    }

    public void setTraslationMyMessageJpanel(TraslationMyMessageJpanel traslationMyMessageJpanel) {
        this.traslationMyMessageJpanel = traslationMyMessageJpanel;
    }

}
